//
//  UIBodyProfileViewCtrl.h
//  AccuroFit
//
//  Created by Yongfeng Li on 8/19/15.
//  Copyright (c) 2015 Nci Technology Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "goalDefine.h"
#import "NIDropDownList.h"

@interface LoginBodyInfo : NSObject

@property(assign, nonatomic) NSInteger m_nBodyId;
@property(retain, nonatomic) NSString* m_sTagId;
@property(retain, nonatomic) NSString* m_sUserId;

@property(assign, nonatomic) BOOL m_bMgr;
@property(assign, nonatomic) NSInteger m_nClubAdmin;

@property(retain, nonatomic) NSString* sEmail;
@property(retain, nonatomic) NSString* sFirst;
@property(retain, nonatomic) NSString* sLast;

@property(assign, nonatomic) Byte nGender;
@property(assign, nonatomic) float fBodyWgt;
@property(assign, nonatomic) float fBodyHgt;
@property(assign, nonatomic) Byte nWgtUn;
@property(assign, nonatomic) Byte nHgtUn;
@property(assign, nonatomic) short nHgtMm;
@property(assign, nonatomic) Byte nActLvl;
@property(retain, nonatomic) NSDate* dtBorn;
@property(assign, nonatomic) Byte nYearAge;

@property(assign, nonatomic) float fGoalWgt;
@property(assign, nonatomic) int nGoalStep;
@property(assign, nonatomic) float fGoalDist;
@property(assign, nonatomic) Byte nDistUnit;

@property(assign, nonatomic) int nMaxBpm;
@property(assign, nonatomic) int nMinBpm;

@property(assign, nonatomic) float fChestSize;
@property(assign, nonatomic) float fWaistLine;

@property(assign, nonatomic) float fCaloriesDay;
@property(assign, nonatomic) short nGymVisitWeek;

@property(retain, nonatomic) NSString* sStoreLoc;
@property(retain, nonatomic) NSString* sProgram;
@property(retain, nonatomic) NSString* sTerms;

@property(assign, nonatomic) Byte nSvrIpIdx;

@property(retain, nonatomic) NSDateFormatter* dtFmt;
-(NSString*) getBornDate;

@end

@interface UIBodyProfileViewCtrl : UIViewController <UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate, GoalDataDelegate>

- (void) showAppVerInfo:(NSString*)sMsg;
- (void) updateGoalData;

@end
